<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<title>知识发布详情</title>
	    <%@include file="/common/commonCSS.jsp" %>
	    <%@include file="/common/commonJS.jsp" %>
		<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
	</head>
	<body >
		<div class="main-container" id="main-container" style="margin-top: 20px;margin-left: 20px">
			<table id="table-list" class="layui-table" lay-even lay-skin="line">
				<%--<tr>--%>
					<%--<th style='width:150px'>作者:</th>--%>
					<%--<td>${knowledge.authorUser}</td>--%>
				<%--</tr>--%>
				<tr>
					<th style='width:150px'>标题:</th>
					<td>${knowledge.topic}</td>
				</tr>
				<tr>
					<th style='width:150px'>关键字:</th>
					<td>${knowledge.keyWord}</td>
				</tr>
				<tr>
					<th style='width:150px'>解决方案:</th>
					<td>${knowledge.solution}</td>
				</tr>
				<tr>
					<th style='width:150px'>业务系统:</th>
					<td>${knowledge.operationName}</td>
				</tr>
				<tr>
					<th style='width:150px'>创建时间:</th>
					<td><fmt:formatDate value="${knowledge.createDate}" pattern="yyyy-MM-dd hh:mm:ss"/></td>
				</tr>
				<tr>
					<th style='width:150px'>类型:</th>
					<td>${fns:getCodeName("knowledge_type",knowledge.type)}</td>
				</tr>

				<c:forEach items="${fieldList}" var="firld" varStatus="i">
					<tr>
						<th style='width:150px'>${firld.fieldName}:</th>
						<td><c:forEach items="${knowledge.valueDictionarys}" var="valueDictionary"><c:if test="${firld.id == valueDictionary.fieldId}">${valueDictionary.fieldValue}</c:if></c:forEach>"/></td>
					</tr>
				</c:forEach>

				<tr>
					<th style='width:150px'>浏览次数:</th>
					<td>${knowledge.viewCount}</td>
				</tr>

			</table>
				<%--<c:forEach items="${fieldList}" var="firld" varStatus="i">--%>
					<%--<div class="row">--%>
						<%--<div class="form-group col-xs-12 ">--%>
							<%--<label class="col-xs-3 control-label no-padding-right"><c:if test="${firld.flagRequired==true}" ><i class="red"> * </i></c:if>${firld.fieldName}:</label>--%>
							<%--<div class="col-xs-9">--%>
							<%--<span class="col-xs-11 block input-icon input-icon-right">--%>
								<%--<input  name="valueDictionarys[${i.index}].fieldId" type="hidden" value="${firld.id}"/>--%>
								 <%--<c:if test="${firld.fieldType == '1'}">--%>
									 <%--<input  name="valueDictionarys[${i.index}].fieldValue"  <c:if test="${firld.flagRequired==true}" >datatype="*1-64"</c:if>$type="text" class="form-control" value="<c:forEach items="${knowledge.valueDictionarys}" var="valueDictionary"><c:if test="${firld.id == valueDictionary.fieldId}">${valueDictionary.fieldValue}</c:if></c:forEach>"/>--%>
								 <%--</c:if>--%>
								 <%--<c:if test="${firld.fieldType == '2'}">--%>
									 <%--<textarea  name="valueDictionarys[${i.index}].fieldValue"  <c:if test="${firld.flagRequired==true}" > datatype="*1-500" </c:if>class="form-control" rows="3"><c:forEach items="${knowledge.valueDictionarys}" var="valueDictionary"><c:if test="${firld.id == valueDictionary.fieldId}">${valueDictionary.fieldValue}</c:if></c:forEach></textarea>--%>

								 <%--</c:if>--%>
							<%--</span>--%>
							<%--</div>--%>
						<%--</div>--%>
					<%--</div>--%>

				<%--</c:forEach>--%>
				<div class="row" style="margin-left: 40%;padding-bottom: 28px;margin-top: 25px;">
					<%--<button class="layui-btn" type="button" >浏览次数(${})</button>--%>
					<%--<a class="layui-btn layui-btn-normal" href="${webRoot}/knowledge/search">返 回</a>--%>
				</div>
			</form>
		</div>
	</body>
	<script>
		//提交
		<%--$("#submitBtn").click(function () {--%>
			<%--var url ="${webRoot}/knowledge/edit";--%>
            <%--checkFormValid($("#knowledgeForm"),function () {--%>
                <%--$.post(url,$("#knowledgeForm").serialize(),function (result) {--%>
                    <%--if(result.code == '0'){--%>
                        <%--if($("#id").val() == ''){--%>
                            <%--alert(result,function () {--%>
                                <%--location.href='${webRoot}/knowledge/list';--%>
                            <%--},function () {--%>
                                <%--$("#submitBtn").reset();--%>
                            <%--});--%>
                        <%--}else {--%>
                            <%--//更新成功，返回List页面--%>
                            <%--toast(result.msg);--%>
                            <%--location.href='${webRoot}/knowledge/list';--%>
                        <%--}--%>
                    <%--}else {--%>
                        <%--alertMsg(result.msg);--%>
                    <%--}--%>

                <%--});--%>
            <%--});--%>

		<%--});--%>
	</script>
</html>